// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
 * @fileoverview Provide Firefox externs that are missing from:
 *
 *     //firefox/javascript:externs.js
 *
 * TODO (jasonstredwick): Add these to //firefox/javascript:externs.js.
 *
 * @author jasonstredwick@google.com (Jason Stredwick)
 */


/**
 * @param {Object} win The window object.
 * @param {Object=} opt_name The name.
 * @param {Object=} opt_func The function.
 * @constructor
 */
function XPCNativeWrapper(win, opt_name, opt_func) {}
XPCNativeWrapper.prototype.QueryInterface = function(object) {};
XPCNativeWrapper.prototype.wrappedJSObject;
XPCNativeWrapper.unwrap = function(object) {};

/**
 * @param {Object} win The window object to create wrapper around.
 * @constructor
 */
function XPCSafeJSObjectWrapper(win) {}


nsIDOMWindow.prototype.wrappedJSObject;
nsIDOMWindow.prototype.QueryInterface = function(object) {};


nsIDOMWindowUtils.prototype.outerWindowID;
nsIDOMWindowUtils.prototype.innerWindowID;

Components.utils.Sandbox.prototype.__proto__;
Components.utils.Sandbox.prototype.importFunction = function(func) {};


ChromeWindow.document.nodePrincipal;
